<!DOCTYPE html>
<html>
<head>
    <title>接口列表</title>
    <style type="text/css">
        .bg {
            background-color: rgb(84, 127, 177);
        }

        tr {
            height: 20px;
            font-size: 12px;
        }

        .specialHeight {
            height: 40px;
        }

        pre {
            outline: 1px solid #ccc;
            padding: 5px;
            margin: 5px;
        }
    </style>
</head>
<body>
<#if exportWord?exists>
    <a href="javascript:void(0)" class="btn btn-primary" onclick="exportWord()">导出</a>
<script
        src="https://code.jquery.com/jquery-3.3.1.min.js"
        integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
        crossorigin="anonymous"></script>
<script src="../script/FileSaver.js"></script>
<script src="../script/jquery.wordexport.js"></script>
<script>
    function exportWord() {
        $("#export_word").wordExport("接口文档");
    }
</script>
</#if>
<div id="export_word">
    <div style="width:800px; margin: 0 auto">
        <table border="1" cellspacing="0" cellpadding="0" width="100%">
                <#list doc.apis as api >
                    <tr align="left">
                        <td>${api.tag} ${api.summary} </td>
                        <td>${api.path}</td>
                    </tr>
                </#list>
        </table>
    </div>
</div>
</body>
</html>